package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.EmployeeQueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;

import java.util.List;

public interface IEmployeeService {

    void insert(Employee employee, Long[] ids) ;

    void delete(Long id) ;

    void update(Employee employee,Long[] ids) ;

    Employee selectById(Long id) ;

    List<Employee> selectAll();

    PageInfo<Employee> query(EmployeeQueryObject qo);


    boolean checkedUsername(String username);

    Employee login(String username, String password);

    Workbook exportXls();

    void importXls(Workbook wb);

    boolean isAdmin();
}
